# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=search1337
pkgver=11.bf03ec9
pkgrel=3
epoch=1
groups=('blackarch' 'blackarch-automation' 'blackarch-exploitation')
pkgdesc='1337Day Online Exploit Scanner.'
arch=('any')
url='https://github.com/b3mb4m/Search1337'
license=('MIT')
depends=('python2' 'python2-mechanize' 'python2-setuptools')
makedepends=('git' 'python2-setuptools')
source=("$pkgname::git+https://github.com/idkwim/Search1337.git")
#source=("$pkgname::git+https://github.com/b3mb4m/Search1337.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

